package com.audaque.springboot.foshanupload.web.webdemo.mapper.covert;

import org.springframework.stereotype.Component;

@Component
public class BooleanStrCoverter {
    public String toStr(Boolean gender) {
        if (gender) {
            return "男";
        } else {
            return "女";
        }
    }
    public Boolean toBoolean(String str) {
        if (str.equals("Y")) {
            return true;
        } else {
            return false;
        }
    }

}

